package bp;

import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.Style;
import javax.jws.soap.SOAPBinding.Use;


@SOAPBinding(use=Use.ENCODED, style=Style.RPC)
@WebService(name="FindDataService", portName = "FindDataServicePort", serviceName = "FindDataServiceService", targetNamespace = "http://impl.service.sale.bus.nova.cn/")
public class FindDataBP  {

	/*@EJB
	private IDAO dao;

	@Override
	@WebMethod
	public String findData(String SQL) {
		Query query = dao.getEntityManager().createNativeQuery(SQL);
		List<Object[]> data = query.getResultList();
		if (data == null || data.size() == 0) {
			return "nodata";
		}

		String datal = "";
		for (int i = 0; i < data.size(); i++) {
			try {
				if (data.get(i).length == 0) {
					continue;
				}
			} catch (Exception e) {
				if (i == data.size() - 1) {
					datal += data.get(i);
				}else {
					datal += (data.get(i) + "[##]");
				}
				continue;
			}
			String datao = "";
			for (int j = 0; j < data.get(i).length; j++) {
				if (j == data.get(i).length - 1) {
					datao += data.get(i)[j];
				}else {
					datao += (data.get(i)[j] + "[#]");
				}
			}
			if (i == data.size() - 1) {
				datal += datao;
			}else {
				datal += (datao + "[##]");
			}
		}
		
		return datal;
	}

	@WebMethod(exclude=true)
	public IDAO getDao() {
		return dao;
	}

	@WebMethod(exclude=true)
	public void setDao(IDAO dao) {
		this.dao = dao;
	}*/

}
